<%@ page language="java" import="java.util.*,org.cx.oa.util.*,org.cx.oa.entity.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'MailLogin.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">

.submitStyle {
	width:143px;
	height:40px;
	background:url("images/buttom-copy-bg.gif")  left top;
	color:#FFF;
} 


</style>


	
<script language="javasctipt" type="text/javascript">  
//提交查询内容   
    function userCheck() {   
    var condId = document.getElementById("user");   
    var text = condId.value;   
    var textValue = text.replace(/(^\s*)|(\s*$)/g, "");     //替换输入内容当中所有的空字符，包括全角空格，半   
    if(textValue==null || textValue=="") { 
    	document.getElementById("usertd").innerText="不能为空";  
        return;  
    }   
    }  

</script>
	

  </head>
  
  <body bgcolor="#EEF2FB">
  <%
  MailClient c=(MailClient)session.getValue("mailuser");

  if(c==null){
  %>
  <center>
    <form action="maillogin_execute" method="post" name="thisForm">
    <table>
    <tr><td>邮箱帐号：</td><td><input type="text" name="client.user" id="user" onblur="userCheck()"></input></td><td><font color="red" id="usertd"></font></td></tr>
     <tr><td>邮箱密码：</td><td><input type="password" name="client.pass"></input></td><td id="passtd"></td></tr>
    <tr> <td colspan="2"><input type="submit" value="登陆" class="submitStyle"><a href="http://reg.email.163.com/unireg/call.do?cmd=register.entrance&from=163mail_right">163邮箱注册</a></input></td></tr>
    </table>
    </form>
    </center>
    <%
    }else{
    %>
    <font color="gray"><%= c.getUser() %></font><H1>邮箱已登陆过</H1>
    <a href="maillogin_logout">注销登陆</a>
    <%
    }
    %>
  </body>
</html>
